// 跳转至课程详情页面
function toClass(id) {
  uni.navigateTo({
    url: `/subpackage/class_detail/class_detail?class_id=${id}`
  })
}

// 热门教师模块点击事件
function toTeacher(id) {
  uni.navigateTo({
    url: `/subpackage/teacher/teacher?teacher_id=${id}`,
  })
}

// 跳转到个人主页
function toPersonal() {
  uni.navigateTo({
    url: '/subpackage/personal/personal'
  })
}

// 跳转到登录页面
function toLogin() {
  uni.navigateTo({
    url: '/subpackage/login/login'
  })
}

module.exports = {
  toClass,
  toTeacher,
  toPersonal,
  toLogin
}
